<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/home.css" />
<script language="javascript" src="<?=gurl('js');?>/site.js"></script>
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w960">
	<div class="w660">
		<div class="smallCon">
			<h1><a id="top" name="top">&nbsp;</a><?=$userinfo["username"];?>的个人主页</h1>
			<? if($isowner):?>
			<ul class="listEdit">
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/account/<?=$userinfo["id"];?>">个人设置</a></li>
				<li class="sel"><a href="/home/profile/<?=$userinfo["id"];?>">我的轻站</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/topic/<?=$userinfo["id"];?>">我的话题</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/inbox/<?=$userinfo["id"];?>">我的邮箱</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/comment/<?=$userinfo["id"];?>">回应我的</a></li>
			</ul>
			<? else:?>
			<ul class="listEdit">
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/account/<?=$userinfo["id"];?>">个人资料</a></li>
				<li class="sel"><a href="/home/profile/<?=$userinfo["id"];?>">他的轻站</a></li>
				<li onmouseover="$(this).addClass('sel');" onmouseout="$(this).removeClass('sel');"><a href="/home/topic/<?=$userinfo["id"];?>">他的话题</a></li>
			</ul>
			<? endif;?>
			<div class="hackbox"></div>
			<? if($usersite):?>
			<div class="w500" id="mysite">
				<h3><?=$whoiam;?>创建的轻站</h3>
				<div class="listMyweb_l"><img src="<?=gurl('images');?>/tran.gif" class="blank" /><a href="<?=c('site_url');?><?=$usersite['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$usersite['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" width="60" height="60" /></a><? if($isowner):?><a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent_site&modal=true" class="delete thickbox">删除</a><? endif;?></div>
				<div class="listMyweb_r"><a class="title" href="<?=c('site_url');?><?=$usersite['domain'];?>"><?=$usersite["name"];?></a>
					<em class="intr"><?=$usersite['info']['description'];?></em>
					<em class="cCGray"><script language="javascript" src="<?=gurl('site_statis/funs/'.$usersite["id"]);?>"></script>人关注</em>
				</div>
				<div class="blank8" style="margin-bottom:40px"></div>
				<div id="hiddenModalContent_site" style=" border:1px solid; padding-top:20px; padding-left:20px; display:none;">
						<div class="floatDiv">
							<div class="cc">
								<p>是否要删除？</p>	
								<div class="inputBox"><input type="button" name="" value="确定" class="airIco" onClick="aj_delete_site(<?=$usersite["id"];?>);" /><input type="button" name="" value="取消" class="airIco" onClick="tb_remove();" /></div>
							</div>
						</div>
				</div>
			</div>
			<? endif;?>
			<h3><?=$whoiam;?>关注的轻站(<script language="javascript" src="<?=gurl('site_statis/user_funs/'.$userinfo["id"]);?>"></script>)</h3>
			<? if($sites):?>
			<div class="listMember">
				<ul>
				<? foreach ($sites as $k => $site):?>
                	<li id="fans_<?=$k;?>">
                        <span class="listImg60"><img src="<?=gurl('images');?>/tran.gif" class="blank"><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" width="60" height="60"></a></span>
                        <span class="listTxt"><a href="<?=c('site_url');?><?=$site['domain'];?>"><?=$site["name"];?></a><em class="cCGray">(<?=$site['funs'];?>)</em><? if($isowner && !$site['self']):?><a class="delete thickbox" href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent_site_<?=$k;?>&modal=true">取消关注</a><? endif;?></span>
           			</li>
           			<div id="hiddenModalContent_site_<?=$k;?>" style=" border:1px solid; padding-top:20px; padding-left:20px; display:none;">
							<div class="floatDiv">
								<div class="cc">
									<p>是否要取消关注？</p>	
									<div class="inputBox"><input type="button" name="" value="确定" class="airIco" onClick="aj_delete_fans(<?=$site["id"];?>, <?=$userinfo["id"];?>, <?=$k;?>);tb_remove();" /><input type="button" name="" value="取消" class="airIco" onClick="tb_remove();" /></div>
								</div>
							</div>
					</div>
                 <? endforeach;?>   
                </ul>
			</div>
			<div class="blank8"></div>
			<div class="allmark">
					<div class="right"><a href="#top" class="goTop cCGray">返回顶部</a></div>
				</div>
				<div class="blank8"></div>
				<div class="page">
                    <?=$pagestring;?>
                </div>
            <? endif;?>
			<div class="hackbox"></div>
		</div>
	</div>
	<script language="javascript" src="/home/right/<?=$userinfo['id'];?>"></script>
	<div class="hackbox"></div>
</div>